package cn.zhonghuanzhiyuan.sprc.basicinfo.domain;

import cn.zhonghuanzhiyuan.sprc.common.utils.excel.ExcelColumn;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * @param
 * @author 涛哥   注意：@ExcelColumn 中的value 一定要跟exlel标题一致
 * @version 1.0
 * @ClassName:Name
 * @description:TODO
 * @date 2024/1/23 15:27
 */
@Data
@ApiModel(description = "企业值班值守表")
@Table(name = "ent_duty_list")
public class EntDuty {

    /**
     * 编号
     */
    @ApiModelProperty(value = "主键")
    @Column(name = "id")
    private String id;
    /**
     * 园区标识
     */
    @ApiModelProperty(value = "园区标识")
    @Column(name = "park_id")
    private String parkId;
    /**
     * 园区名称
     */
    @ApiModelProperty(value = "园区名称")
    @Column(name = "park_name")
    @ExcelColumn(value = "园区名称",col=1)
    private String parkName;
    /**
     * 所属单位
     */
    @ApiModelProperty(value = "所属单位")
    @Column(name = "org_id")
    private String orgId;
    /**
     * 所属单位名称
     */
    @ApiModelProperty(value = "所属单位名称")
    @Column(name = "org_name")
    @ExcelColumn(value = "所属单位名称",col=2)
    private String orgName;
    /**
     * 值班日期
     */
    @ApiModelProperty(value = "值班日期")
    @Column(name = "duty_date")
    @ExcelColumn(value = "值班日期",col=3)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date dutyDate;
    /**
     * 白班-带班名称
     */
    @ApiModelProperty("白班带班领导")
    @Column(name = "day_head_name")
    @ExcelColumn(value = "白班带班领导",col=4)
    private String dayHeadName;
    /**
     * 白班-带班电话
     */
    @ApiModelProperty("白班带班领导手机号码")
    @Column(name = "day_head_phone")
    @ExcelColumn(value = "白班带班领导手机号码",col=5)
    private String dayHeadPhone;



    @ApiModelProperty("白班值班员1")
    @Column(name = "day_1_name")
    @ExcelColumn(value = "白班值班员1",col=6)
    private String day1Name;
    /**
     * 白班1-电话
     */
    @ApiModelProperty("白班值班员1手机号码")
    @Column(name = "day_1_phone")
    @ExcelColumn(value = "白班值班员1手机号码",col=7)
    private String day1Phone;


    @ApiModelProperty("白班值班员2")
    @Column(name = "day_2_name")
    @ExcelColumn(value = "白班值班员2",col=8)
    private String day2Name;
    /**
     * 白班2-电话
     */
    @ApiModelProperty("白班值班员2手机号码")
    @Column(name = "day_2_phone")
    @ExcelColumn(value = "白班值班员2手机号码",col=9)
    private String day2Phone;


    /**
     * 夜班-带班名称
     */
    @ApiModelProperty("夜班带班领导")
    @Column(name = "night_head_name")
    @ExcelColumn(value = "夜班带班领导",col=10)
    private String nightHeadName;
    /**
     * 夜班-带班电话
     */
    @ApiModelProperty("夜班带班领导手机号码")
    @Column(name = "night_head_phone")
    @ExcelColumn(value = "夜班带班领导手机号码",col=11)
    private String nightHeadPhone;
    /**
     * 夜班1-名称
     */
    @ApiModelProperty("夜班值班员1")
    @Column(name = "night_1_name")
    @ExcelColumn(value = "夜班值班员1",col=12)
    private String night1Name;
    /**
     * 夜班1-电话
     */

    @ApiModelProperty("夜班值班员1手机号码")
    @Column(name = "night_1_phone")
    @ExcelColumn(value = "夜班值班员1手机号码",col=13)
    private String night1Phone;
    /**
     * 夜班2-名称
     */
    @ApiModelProperty("夜班值班员2")
    @Column(name = "night_2_name")
    @ExcelColumn(value = "夜班值班员2",col=14)
    private String night2Name;
    /**
     * 夜班2-电话
     */
    @ApiModelProperty("夜班值班员2手机号码")
    @Column(name = "night_2_phone")
    @ExcelColumn(value = "夜班值班员2手机号码",col=15)
    private String night2Phone;
    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    @Column(name = "create_user")
    private String createUser;
    /**
     * 创建时间
     */
    @ApiModelProperty("提交时间")
    @Column(name = "create_time")
    private Date createTime;

}
